import mPerfevalPc from './m-perfeval-pc'
import common from './common'
const tabsNameData = {
  [mPerfevalPc.name]: mPerfevalPc.data,
  [mPerfevalPc.port]: mPerfevalPc.data
}
function getSystemNameOrPort () {
  return window.location.port || (/\/(.*?)\//.exec(window.location.pathname) && (/\/(.*?)\/$/.exec(window.location.pathname)[1])) || 'm-door-pc'
}
const systemNameOrPort = getSystemNameOrPort()
// console.log(window.location.pathname, 'path')
// console.log(window.location.port, 'path')
Object.keys(tabsNameData).forEach(key => {
  tabsNameData[key] = tabsNameData[key] || {}
  tabsNameData[key] = {...common, ...tabsNameData[key]}
})
export default tabsNameData[systemNameOrPort] || {}